<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-customerAttendance-edit">
			<input id="attendId" name="attendId"
				th:value="${customerAttendance.attendId}" type="hidden">
			<div class="form-group">
				<label class="col-sm-3 control-label">客户姓名：</label>
				<div class="col-sm-8">
					<input id="attendCustName" name="attendCustName"
						th:value="${customerAttendance.attendCustName}"
						class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">手机号码：</label>
				<div class="col-sm-8">
					<input id="cellphoneNum" name="cellphoneNum" readonly="readonly"
						th:value="${customerAttendance.cellphoneNum}" class="form-control"
						onblur="Tel(this,this.value)"
						type="text" maxlength="11">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">所属部门：</label>
				<div class="col-sm-8">
					<input id="deptName" name="deptName" readonly="readonly"
						th:value="${customerAttendance.dept.deptName}" class="form-control"
						type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">业务员：</label>
				<div class="col-sm-8">
					<input id="salesUserName" name="salesUserName"
						th:value="${customerAttendance.user.loginName}" class="form-control" readonly="readonly"
						type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">年龄：</label>
				<div class="col-sm-8">
					<input id="age" name="age" th:value="${customerAttendance.age}"
						class="form-control" type="number" maxlength="3">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">性别：</label>
				<div class="col-sm-8">
					<div class="radio radio-info radio-inline">
						<input type="radio" id="radio_sex" th:field="*{customerAttendance.sex}" name="sex" value="0">
						<label for="radio1">男</label>
					</div>
					<div class="radio radio-danger radio-inline">
						<input type="radio" id="radio_sex" th:field="*{customerAttendance.sex}" name="sex" value="1">
						<label for="radio2">女</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">是否本人：</label>
				<div class="col-sm-8">
					<div class="radio radio-success radio-inline">
						<input type="radio" id="radio_isOwnself" th:field="*{customerAttendance.isOwnself}" name="isOwnself" value="0">
						<label for="radio1">本人</label>
					</div>
					<div class="radio radio-success radio-inline">
						<input type="radio" id="radio_isOwnself" th:field="*{customerAttendance.isOwnself}" name="isOwnself" value="1">
						<label for="radio2">代咨询</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">参课时间：</label>
				<div class="col-sm-8">
					<input id="attendanceTime" name="attendanceTime" readonly="readonly"
						th:value="${customerAttendance.attendanceTime}"
						class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">创建者：</label>
				<div class="col-sm-8">
					<input id="createBy" name="createBy" readonly="readonly"
						th:value="${customerAttendance.createBy}" class="form-control"
						type="text">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-8 col-sm-offset-3">
					<button type="submit" class="btn btn-primary">提交</button>
				</div>
			</div>
	</div>
	</form>
	</div>
	<div th:include="include::footer"></div>
	<script src="/azxcrm/module/customerAttendance/edit.js"
		th:src="@{/azxcrm/module/customerAttendance/edit.js}">
    </script>
    <script>
    function Tel(obj,val){
        var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
        if(!myreg.test(val)){
        	obj.value='';
          layer.msg('请输入正确的电话号码')
        }else{
          return true;
        }
      }
    </script>
</body>
</html>
